<?php
/**
 * Created by IntelliJ IDEA.
 * User: HXL
 * Date: 2018/9/27
 * Time: 9:39
 */
namespace app\order\model;

use think\Db;

class OrderMeters extends BaseModel{
    protected $tableName = 'ari_order_meter';

    public function join($where){
        $result = Db::table($this->tableName)->join('ari_meter_types meter', $this->tableName.'.m_id=meter.meter_id')
            ->where($where)->select();
        return $result;
    }

    /**
     * 批量添加
     * @param $data
     * @return int|string
     */
    public function insertAll($data){
        $result = Db::table($this->tableName)->insertAll($data);
        return $result;
    }

}